package com.jiyun.user.controller;

import com.jiyun.Result.Result;
import com.jiyun.user.service.MemberService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class MemberController {

    @Autowired
    private MemberService memberService;

    @GetMapping("member/findMember/{token}")
    public Result findMember( @PathVariable String token){

        return memberService.findMember(token);
    }


}
